package com.itheima.redisTest;

import com.itheima.utils.JedisUtils;
import redis.clients.jedis.Jedis;

public class RedisDemo03 {
    public static void main(String[] args) {
        //从工具类中获取jedis对象
        Jedis jedis = JedisUtils.getJedis();
        System.out.println(jedis.get("name"));
        //释放资源
        jedis.close();
    }
}
